popover: Try to not exceed monitor bounds
authorMatthias Clasen <mclasen@redhat.com>
Tue, 22 Dec 2020 03:46:52 +0000 (22:46 -0500)
committerMatthias Clasen <mclasen@redhat.com>
Tue, 26 Jan 2021 04:33:04 +0000 (23:33 -0500)
commit4857829aaa3c7fcab65565819350bd0d2b576493
treecffaa77b751448b46c3aae945d3542caee52bf75
parent2ea4574caf752a8e04eee591580a0f4ca0992021
popover: Try to not exceed monitor bounds

When the natural size of the popover exceeds
the monitor width, clamp it to fit on screen.

This gives the Emoji chooser a chance to
work on phone screens.

Fixes: #3307
gtk/gtkpopover.c